<template>
	<view class="contain">
		<view class="search-box" @click="searchfun">
			<image src="../../static/other/serach.png" mode=""></image>
			<text>搜索</text>
		</view>
	</view>
</template>

<script>
	
	export default {
		name:"my-search",
		data() {
			return {
				
			};
		},
		methods:{
			searchfun(){
				this.$emit("handlesearch")
			}
		}
	}
</script>

<style scoped>
.contain{
	width: 100%;
	height: 50px;
	background-color: red;
	display: flex;
	justify-content: center;
	align-items: center;
}
.search-box{
	width: 90%;
	height: 60rpx;
	line-height: 60rpx;
	text-align: center;
	font-size: 32rpx;
	background-color: #FFFFFF;
	border-radius: 30rpx;
	display: flex;
	justify-content: center;
	align-items: center;
}
.search-box image{
	width: 34rpx;
	height: 34rpx;
	margin-right: 10rpx;
}
</style>
